package com.mnsq.common.bean.entity.message;

import com.mnsq.common.bean.entity.CommonEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author 周俭
 */
@Data
@Entity
@Table(name = "m_message")
public class Message extends CommonEntity {
    private static final long serialVersionUID = -6836462488381474469L;
    /**
     * 0:系统信息；1:私人信息；
     */
    private Integer type;
    @Column(name = "doc_text")
    private String docText;
    @Column(name = "html_text")
    private String htmlText;
    @Column(name = "target_user_id")
    private Long targetUserId;
    @Column(name = "sender_user_id")
    private Long senderUserId;
    @Column(name = "whether_read")
    private Integer whetherRead;
    @Column(name = "sender_name")
    private String senderName;
}
